home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / text / faqs / 386bsd-faq.part7 < prev    next >
Encoding:
Internet Message Format  |  1994-04-02  |  24.0 KB

  1. Subject: [comp.os.386bsd] BNR/2 derived BSD for PCs FAQ (Part 7 of 10)
  2. Newsgroups: comp.os.386bsd.announce,comp.answers,news.answers
  3. From: burgess@hrd769.brooks.af.mil (Dave Burgess)
  4. Date: 31 Mar 1994 21:37:51 -0000
  5.  
  6. Posted-By: auto-faq 2.4
  7. Archive-name: 386bsd-faq/part7
  8.  
  9. Section 6.    (Interaction with MS-DOS)
  10.  
  11. 6.0    Working with DOS and BNR/2 related software.
  12.  
  13.     This section is designed to cover some of the more common 
  14.     problems that DOS will have when interacting with BNR/2.
  15.     There are other sections of the FAQ that deal with 
  16.     indirectly with this .  Try looking in sections 0, 1, and 2
  17.     to see if something in there (particularly when talking 
  18.     about DOS and *BSD coexisting on a single drive).
  19.  
  20.     
  21. 6.1    Formatting a floppy
  22.  
  23.     There is a rumor that floppy formatting either is possible or was
  24.     possible at one time.  If you see any software or FTP sites with 
  25.     anything about this, please contact burgess@hrd769.brooks.af.mil
  26.     and I will make sure it gets updated in here.
  27.  
  28.     There was a set of patches that were developed to allow floppy
  29.     formatting.  They are not currently included in any of the *BSD
  30.     systems.
  31.  
  32.     I have actually applied the patches for floppy formatting here on 
  33.     NetBSD, and they seem to work just fine.  The fdformat program 
  34.     could use some work, but seems to work OK.  According to the author,
  35.     similar patches are available for NetBSD and the original 386BSD.
  36.     Presumably, FreeBSD patches can't be too far behind.  The package 
  37.     that I used here was posted in comp.os.386bsd.* somewhere.  I think
  38.     that it is available by anonymous FTP from hrd769.brooks.af.mil.  
  39.     If not, E-Mail me at burgess@hrd769.brooks.af.mil and I will mail
  40.     you a tar file with the stuff that i have available.
  41.     
  42.  
  43. 6.2    Sharing the Disk with MS-DOS
  44.  
  45.     There are a myriad of questions about how to share a disk between
  46.     386bsd and MS-DOS.  They all boils down to one of the <n> following
  47.     questions:
  48.  
  49.     1)  How can I partition my drive for both MS-DOS and 386bsd?
  50.     2)  I can install using the whole disk, but I can't install when 
  51.     I try to share the drive between 386bsd and MS-DOS.  Why?
  52.     3)  I can use either MS-DOS or 386BSD on my hard drive,
  53.     but shutdown -todos doesn't seem to work.
  54.  
  55.  
  56. 6.2.1    How can I partition my drive to support both MS-DOS and *bsd?
  57.  
  58.     NOTE:  Before attempting to install *bsd on a computer with an
  59.     active DOS partition, ALWAYS back up your hard drive.  No one on 
  60.     the net, no matter how talented, can help you recover a hosed 
  61.     MS-DOS file system.  If you lose all of your data, it is YOUR
  62.     fault.
  63.  
  64.     During the install phase, you need to have un-allocated space left
  65.     on your disk drive.  This allows the install program to correctly
  66.     install the *bsd partition in the partition table and DOS to
  67.     peacefully co-exist with *bsd.
  68.  
  69.     If you do not have any space available on your hard drive, you will
  70.     not be able to install both.  Re-fdisk your hard drive and make
  71.     sure you have left un-allocated space in the partition table.  
  72.     This WILL wipe out your DOS partition - Permanently.
  73.  
  74.     Even though the partition table procedure above may have worked, 
  75.     there are still no guarantees that your system will boot after
  76.     the install.  This problem most often manifests itself as one of
  77.     the endless reboot problems.  You would normally be able to boot
  78.     DOS from the hard disk, but not *bsd (once that partition is
  79.     marked as active).
  80.  
  81.     Once the partition table has been correctly defined with both
  82.     DOS and *bsd, there can still be problem.  One of the most
  83.     common is that the disk drive works in some sort of translation
  84.     mode.  This is particularly common with drives that physically have
  85.     more than 1024 cylinders.  DOS cannot access a drive with more than
  86.     1024 cylinders.  Translation mode will have to be turned off, usually
  87.     by redefining your hard drive in SETUP as one of the user definable
  88.     types.  This change will normally trash your hard drive, or at least
  89.     render your DOS partition unreadable.
  90.  
  91.     The solution to this problem is to install *bsd at the end of the
  92.     hard drive.  While DOS cannot use cylinders above 1024, *bsd has
  93.     no such limitations, once it has booted.  During the boot-up phase,
  94.     some of the newer boot blocks will refer to the BIOS for some
  95.     services.  Specifically, the disk is checked for a bad sector map
  96.     on the last track.  Since the BIOS cannot deal with cylinders
  97.     higher than 1024, your bad sector map will be incorrectly
  98.     identified as 1023 if the number of cylinders is larger than that.
  99.     This problem is being worked on, and I hope to change this section
  100.     with better news later.
  101.  
  102.     NOTE:  The only people that this problem will effect are those 
  103.     MFM and ESDI users that have drives with more than 1023 tracks.  
  104.     While drives of this type are not the overwhelming majority, 
  105.     neither are they an anomoly.  People are working on it.
  106.  
  107.     As an example, if your hard disk physically has 8 heads, 16 sectors 
  108.     per track, and 2000 cylinders (128M); you MUST use some sort of disk
  109.     translation in order to use the entire drive.  An obvious geometry
  110.     for this drive (for DOS) would be 16 heads, 16 sectors, and 1000
  111.     cylinders.  Unfortunately, *bsd operates using the disk drives
  112.     native geometry as reported during the probe phase of boot up.  This
  113.     will probably be 8/16/2000, and will NOT agree with your translated
  114.     disk geometry.  This causes an endless reboot cycle.  If you change
  115.     the geometry so that the drive agrees with the disklabel, your DOS
  116.     partition is toast.
  117.  
  118.     The best way to operate in this case would be to (for example)
  119.     split the disk in half.  That leaves 64M for DOS, using a 
  120.     geometry of 8 heads, 16 sectors per track, and the first 1000 
  121.     cylinders for DOS.  The second 1000 cylinders could then safely
  122.     be used for *bsd.  The DOS partition table may even be capable of
  123.     showing this partition as it actually exists.
  124.  
  125.     Luke Mewburn <zak@rmit.edu.au> has provided the following tutorial on 
  126.     using the pfdisk program and making your *bsd/NetBSD partitions
  127.     peacefully coexist with DOS.  While this is kind of a 'cookbook' 
  128.     approach, please keep in mind that this is probably easily 
  129.     transferrable to all BNR derived Unices.
  130.  
  131.  
  132.             Getting NetBSD 0.8 to coexist with DOS.
  133.  
  134.             Written 930510 by Luke Mewburn <zak@rmit.edu.au>
  135.  
  136.  
  137.     NetBSD can be made to happily co-exist with DOS if its install
  138.     program knows how to modify the partition table. This assumes
  139.     that you have access to a program which enables you to edit the
  140.     partition table of your hard drive (such as Norton Utilities, or
  141.     pfdisk).
  142.  
  143.     When you partition your hard drive, you will probably have a large
  144.     partition in which you wish to place NetBSD. This has to have the
  145.     partition ID of 165d (or 0xA5). To change this, you can use the
  146.     'Partition Edit' section of Norton's, or you can use pfdisk.
  147.     This document will go into more detail on how to use pfdisk, as it's
  148.     freely available.
  149.  
  150.     I'll use my personal drive specifications in the following example.
  151.     It is a 1001 cylinder, 15 trk/cyl, 17 sec/trk, 125MB drive. I
  152.     low-level formatted it, and used fdisk on a MS-DOS 5.0 boot disk to
  153.     create a primary partition '1' of 32MB, and an extended partition '2'
  154.     of 93MB.  I formatted the drive with format c: /s to give myself a
  155.     bootstrap for DOS (much faster than floppies :), but this isn't that
  156.     necessary. Now, the next stage...
  157.  
  158.     Running pfdisk 0 (to access my first (and only :) HD) came up with
  159.     something like:
  160.     
  161.     For help, enter: '?'
  162.     pfdisk>
  163.  
  164.     At the prompt, enter 'l' to list partitions, giving (in my case),
  165.     something like:
  166.  
  167.     # Partition table on device: 0
  168.     geometry 1000 15 17 (cyls heads sectors)
  169.     #  ID  First(cyl)  Last(cyl)  Name  # start, length (sectors)
  170.     1   4      0        256       DOS16 # 17, 65518
  171.     2   0    257        999       unkno # 65535, 189465
  172.     3   0      0          0       empty # 0, 0
  173.     4   0      0          0       empty # 0, 0
  174.     active: 0 (none)
  175.  
  176.     (Note that there is 1 cylinder less - the last one is, I think,
  177.     for the IDE controller to use when auto-mapping dud sectors out.)
  178.  
  179.     Now, we want to change the type of #2 (the prospective NetBSD
  180.     partition) to 165. You can obtain a list of known IDs by selecting
  181.     'I'. Depending on the version of pfdisk you have, 165 may or may not
  182.     be known. This doesn't matter too much either way. To get the NetBSD
  183.     install program to use the 2nd partition, I would enter:
  184.  
  185.     pfdisk> 2 165 257 999
  186.  
  187.     Another 'l' to list partitions would show that the entry for
  188.     partition 2 will either look like one of the following (depending
  189.     on whether pfdisk knows about the 386bsd partition type or not):
  190.  
  191.     2 165    257        999       unkno # 65535, 189465
  192.     or
  193.     2 165    257        999       386BS # 65535, 189465
  194.  
  195.  
  196.     You could set the active partition with 'a 2' if you want NetBSD
  197.     to always boot, but I personally recommend that you obtain a copy
  198.     of OS-BS 1.35 or BOOTEASY to save you the hassle of running fdisk
  199.     or pfdisk every time you wish to swap system types.
  200.  
  201.     To complete everything off, do 'w' to write out the info (once
  202.     you're sure it's correct! :), and 'q' to quit the program.
  203.  
  204.  
  205.     Well, I hope that is useful to someone. Comments can be directed
  206.     to the author (Email: <zak@rmit.edu.au>).
  207.  
  208.  
  209. 6.2.2    I can install using the whole disk, but I can't install when 
  210.     I try to share the drive between 386bsd and MS-DOS.  Why?
  211.  
  212.     This is an extension of the question above.  The most common reason
  213.     for this is, once again, disk translation problems.  If the 
  214.     disklabel does not agree with the disk geometry, the install will
  215.     fail.  Other incarnations of this problem are that you can install
  216.     DOS, then 386bsd, and DOS will be hosed, or vice versa.
  217.  
  218.     There are more than a couple of people who will blithely suggest that
  219.     this is a good thing, and you should install 386bsd exclusively,
  220.     job not withstanding.
  221.  
  222.  
  223. 6.2.3    I can use either MS-DOS or 386BSD on my hard drive,
  224.     but shutdown -todos doesn't seem to work.
  225.  
  226.     There is a known bug in shutdown that prevents the -todos option 
  227.     from working as advertised on all but the smallest DOS partitions.
  228.     Many people have reported some success while using a very small
  229.     (less than 32M) DOS partition as the first partition.
  230.  
  231.     There is a utility available for 386bsd which operates very much
  232.     like the MS-DOS fdisk partitioning program.  You can use this program
  233.     to mark the DOS partition active from 386bsd.  A similar procedure
  234.     is used (fdisk in DOS) to mark the 386bsd partition as the active
  235.     boot partition.  Boot managers are also an excellent investment for
  236.     those individuals that need to boot both DOS and 386BSD.
  237.  
  238.  
  239. 6.2.4    Is there any hope of ever running MS-DOS applications under any of
  240.     the free BSD systems?
  241.  
  242.     There is currently a project in development to port the Windows 
  243.     program exvironment to Linux and the *BSD systems.  Here is an
  244.     excerpt from the original message announcing the project:
  245.  
  246.     As many of you already know, we are in the process of creating a
  247.     Windows emulator.  This emulator is similar to Sun's Wabi product, 
  248.     but is being developed completely independent of them.  Many of 
  249.     you are anxious to hear the latest status of the project.  I have 
  250.     created a mailing list for those of you.  To join the list, simply 
  251.     send mail to:
  252.  
  253.     wine-project-info@amscons.com
  254.  
  255.     If your mailing address is not easy to deduce from the mail 
  256.     headers, then place the following line in the body of the message 
  257.     that you send.
  258.  
  259.     Reply-To: youraddress@yourmachine
  260.  
  261.     where youraddress@yourmachine should be replaced by your actual 
  262.     mailing address.
  263.  
  264.  
  265. 6.3    Accessing the MS-DOS filesystem 
  266.  
  267.     One of the most common MS-DOS related questions (with the possible
  268.     exception of 6.2 above) is how to access the DOS disk partitions
  269.     from 386bsd.  One way is to modify mtools so that it recognizes your
  270.     DOS partition.  This solution is provided by Jim Paradis 
  271.     (paradis@sousa.ltn.dec.com):
  272.  
  273.     --------------------------------------------------------------------
  274.     To build a /usr/othersrc/public/mtools.2.0.5/devices.c file that 
  275.     lets you access the DOS partition, you need to know the byte offset 
  276.     of the DOS partition from the start of the hard disk.  You would then 
  277.     add an entry to the devices[] array as follows:
  278.  
  279.     {'C', "/dev/wd0d", <byte-offset>L, 16, 0, (int (*) ()) 0, 0, 0, 0},
  280.  
  281.     So, f'rinstance, if your DOS partition starts at the beginning of
  282.     the disk, you'd have:
  283.  
  284.     {'C', "/dev/wd0d", 0L, 16, 0, (int (*) ()) 0, 0, 0, 0},
  285.  
  286.     On the other hand, if your DOS partition starts 32MB into the disk,
  287.     you'd say something like:
  288.  
  289.     {'C', "/dev/wd0d", (32768L * 1024L), 16, 0, (int (*) ()) 0, 0, 0, 0},
  290.  
  291.     --------------------------------------------------------------------
  292.     Of course, this is both the hard and VERY non-portable way of
  293.     solving this problem.  An easier way would be to add PCFS to your 
  294.     386bsd/NetBSD system.  Both the PC File system and PC Network File 
  295.     System (PC-NFS) code has been ported to 386bsd/NetBSD/FreeBSD.  These 
  296.     are available from several sources, including the patchkit. 
  297.  
  298.     The instructions for using PCFS with 386BSD are provided by Scott 
  299.     Miles <gt1679c@prism.gatech.EDU>. 
  300.  
  301.         What would probably be easier would be to add a partition to 
  302.         the disklabel for your DOS drive and then just mount it with 
  303.         PCFS.  I don't know if it's in the FAQ now, I haven't read it 
  304.         for a while, but this is what I did:
  305.  
  306.         1) run 'fdisk' and write down the DOS partition info for 
  307.         the start and size that it gives you.
  308.  
  309.         2) disklabel -e -r /dev/<raw device>
  310.               - Add 1 to the '# partitions:', and then add another line 
  311.               for the DOS partition .  Mine went in after e: as 
  312.  
  313.        f:   130977     63   unused      0     0     # (Cyl.    0*- 129*)
  314.  
  315.     (Ed.Note:  The unused should be something else, although I really
  316.         couldn't tell you what. MSDOS is a recognized partition 
  317.         type name, maybe that should be used.  Also, make sure that
  318.         your c: and d: partitions do not overlap this area.  h: might 
  319.         be a better partition letter to use; that way the MSDOS 
  320.         partition is graphically separate from the rest of the BSD
  321.         partitions.  DO NOT USE a:, b:, c:, or d: for your DOS 
  322.         partition.  These are RESERVED for your BSD system and any 
  323.         attempt to use these for anything but what BSD uses them for 
  324.         will result in a completely hosed, totally dead, absolutely 
  325.         screwed up file system.  You have been warned! )
  326.  
  327.         3) Add a line to /etc/fstab if you want it mounted 
  328.         automatically.
  329.              Mine is:
  330.              /dev/wd0f       /dos            pcfs    rw              1       2
  331.  
  332.            Otherwise, just mount -t pcfs /dev/<part> /<dir>
  333.  
  334.     Mount has other options that may improve performance or increase
  335.     security for your system.  See 'man mount' for more information 
  336.     about mounting your system read-only and other advanced features.
  337.  
  338.     In addition to this, Jordan Hubbard has provided us with the
  339.     following description for mounting the DOS partition specifically
  340.     from FreeBSD:
  341.  
  342.         How to mount your DOS partition from FreeBSD
  343.  
  344.     1. First, be root.  The following won't work as an ordinary user.
  345.  
  346.     2. Second, use 'fdisk' to see where your DOS partition starts.  
  347.     It will be labeled as type DOS.  On my system, 'fdisk /dev/sd0d' 
  348.     produces the following:
  349.  
  350.         ... (extraneous output, not of interest) ...
  351.     The data for partition 0 is:
  352.     sysid 6,(Primary 'big' DOS (> 32MB))
  353.         start 32, size 306400 (149 Meg), flag 0
  354.             beg: cyl 0/ sector 1/ head 1;
  355.             end: cyl 149/ sector 32/ head 39
  356.  
  357.         This shows me that my DOS partition starts at sector 32, and 
  358.     is 306400 (512 byte) sectors long.
  359.  
  360.     NOTE:  If you're trying to mount a DOS `EXTENDED' partition, then 
  361.     you need to add `32' to this start address you got from fdisk in 
  362.     subsequent calculations, I.E. in the above example (assuming it 
  363.     was an EXTENDED partition rather than the Primary), you'd use 
  364.     `start 64, size 306400'.
  365.  
  366.     [Ed.Note.  This example assumes a SCSI disk.  For disks with a 
  367.     number of sectors per track which is different than 32, you will
  368.     probably see the 32s above replaced with your number of sectors
  369.     per track. ]
  370.  
  371.     3. Next, using this information, you craft a new disk entry in your
  372.        /etc/disktab file that assigns one of your unused "UNIX" 
  373.        partitions to this DOS region.  Again, using my system as a 
  374.        default, you see I've created:
  375.  
  376.     disk0|DEC 5501:\
  377.         :ty=winchester:dt=SCSI:se#512:nt#8:ns#256:nc#1001:rm#3600:\
  378.         :pa#956416:oa#307200:ba#8192:fa#1024:ta=4.2BSD:\
  379.         :pb#131072:ob#1263616:tb=swap:\
  380.         :pc#1087488:oc#307200:tc=UNUSED:\
  381.         :pe#306400:oe#32:te=MSDOS:
  382.  
  383.        As you can see, partition 'e' now points to the DOS partition as
  384.        pointed out by fdisk.
  385.  
  386.        [Ed.Note again.  Remember what I said about the 32 above...]
  387.        
  388.  
  389.     4. Now we have to actually stick the label on the disk, which is done
  390.        with disklabel.  Using my example, this would be:
  391.  
  392.         disklabel -r -w sd0 disk0 SCSI /usr/mdec/sdboot /usr/mdec/bootsd
  393.  
  394.     5. Reboot your system to see the new disk label.
  395.  
  396.     6. Mount the DOS partition.  I do:
  397.  
  398.         mount -t pcfs /dev/sd0e /dos_c
  399.  
  400.        Where /dos_c is just a convenient directory to mount it.
  401.  
  402.     7. You're set!
  403.  
  404.     With the exception that the '-t' option is msdos in NetBSD, these 
  405.     instructions seem to work with the same facility for NetBSD.  I
  406.     also received a note a couple of weeks ago (that I promptly deleted
  407.     because I new that I would remember what it said) that DOS extended
  408.     partitions are readable if you skip the first 'n' blocks in your 
  409.     computations (where 'n' is your number of sectors per track).  This 
  410.     way, you skip over the 'new' part of the DOS file system.  That means 
  411.     that insted of the oe:32 above, you would need an oe:48 instead.  
  412.  
  413.     Also remember that the compressed file system in DOS 6 will probably
  414.     be completely greek to your NetBSD/FreeBSD system.  I seriuosly 
  415.     doubt that you will be able to read the compressed DOS file system
  416.     anytime in the forseeable future.
  417.      
  418.  
  419. 6.4    NFS/PC-NFS support
  420.  
  421.     The problems normally associated with PC-NFS are also associated 
  422.     with NFS in general.  
  423.  
  424.  
  425. 6.4.1    Can I use 8K packets for NFS?  When I try, I have all kinds of 
  426.     problems.
  427.  
  428.     In addition to the NE2000 card, this problem can also manifest 
  429.     itself on other ISA networks cards that have a limited amount of
  430.     memory.  Ken Raeburn (raeburn@cambridge.cygnus.com) has identified 
  431.     a common problem with the NE2000 card and provided us with a work
  432.     around:
  433.  
  434.     --------------------------------------------------------------------
  435.     I reported previously that I was seeing problems reading files over
  436.     NFS using the ne2000 driver; timeouts would eventually be reported, no
  437.     data would be read.  Listing files and directories (small ones
  438.     anyway) were not a problem.
  439.  
  440.     After playing with etherfind and kernel printfs, I've come to this
  441.     conclusion: Fragmented 8K UDP packets from the NFS server are not
  442.     reaching the UDP layer in 386bsd.  The Sun is sending them (according
  443.     to another Sun spying on the network), but the UDP input routine is
  444.     never called.  I don't know if the bug here is on the 386bsd or Sun
  445.     side, and won't have time to look into it in the next couple of days.
  446.  
  447.     In the meantime, mounting NFS file systems with "rsize=1024" does get
  448.     rid of this problem.
  449.  
  450.     Ken
  451.     --------------------------------------------------------------------
  452.  
  453.     As a matter of policy, specifying "rsize=1024,wsize=1024" works very
  454.     well also, and makes the transfers seem to run faster.  This is
  455.     probably because there are fewer collisions.  The disadvantage of 
  456.     this method comes from the kernel 'sync'ing after all NFS writes.  
  457.     This can slow NFS accesses considerably.  As with most 
  458.     generalizations, this one too can do nearly as much harm as good.  
  459.     Charles Hannum reports that he has no trouble using the default 8K 
  460.     packet size.  If you have trouble, reduce your default packet size
  461.     until the problem goes away.
  462.  
  463.     WIth the newer drivers (especially the ed driver) most of these 
  464.     problems are solved automagically.  If you are still using the
  465.     original 386bsd 0.1 release, you REALLY need to upgrade.
  466.     
  467.  
  468. 6.4.2    How do I get around the NFS "Permission denied" error?
  469.  
  470.     The problem is not the configuration of the server (unless there is
  471.     no real requirement to run it in "secure" mode, and you happen to
  472.     be running it that way anyway).  The problem is the fact that,
  473.     even though mount request are sent on a privileged port, NFS
  474.     connections are not.  This is part of secure NFS, and is not
  475.     supported in 386BSD.
  476.     
  477.  
  478. 6.4.3    What does the message "BAD MNT RPC: RPC Authentication error; 
  479.     why = Invalid client credential" mean when I try to mount something
  480.     from another machine?
  481.  
  482.     Hellmuth Michaelis (hm@hcshh.hcs.de) offers the solution to this
  483.     relatively common problem:
  484.  
  485.     You have to make sure that the user "root" is not present in more
  486.     than 8 entries in the "/etc/group" - file on the 386BSD machine.
  487.     Simply remove some entries and the NFS mounts will succeed.
  488.  
  489.     The problem is also explained in the Clarkson Driver documentation.
  490.     On 386bsd, the maximum number of groups that can be associated with
  491.     a particular user is specified in the source (in a #DEFINE).  In 
  492.     386bsd, this number is set to 8.  So, you actually have two routes
  493.     you can take to correct this problem.  The first is outlined by
  494.     Hellmuth, above, and the second is to edit and recompile the NSF
  495.     software to allow more groups.
  496.  
  497.  
  498. 6.4.4    What does the message "Bad MNT RPC: RPC: Authentication error; 
  499.     why = Client credential too weak" mean when I try to mount something
  500.     from another machine?
  501.  
  502.     This problem is a standard NFS problem; it simply means that your 
  503.     user number is not one of the ones that can mount this NFS.  
  504.     Normally, you will get this message when you are trying to mount 
  505.     a filesystem from a machine that allows 'root' to mount an NFS,
  506.     but limits other users.
  507.  
  508.  
  509. 6.4.5    I get a lot of 'ring buffer overflow' messages using NFS and the
  510.     ed0 driver.  Is there a problem?
  511.  
  512.     David Greenman (davidg@implode.rain.com), the original author of 
  513.     the ed0 driver, provides us with some insight into the inner 
  514.     workings of the ed0 driver.
  515.  
  516.        It always surpises me that people don't just ask the original 
  517.     author these questions. :-) Anyway, the reason these are happening 
  518.     is that the access to the 8bit boards shared memory simply isn't 
  519.     fast enough to deal with full wire speeds...but the driver tries 
  520.     hard...so even though packets get dropped, your performance only 
  521.     drops to about what the ethernet board is capable of (should be 
  522.     in the 400-600k range with an 8bit card). NFS is especially bad 
  523.     because the UDP window is quite large (40k last time I looked), 
  524.     so the overflow condition can happen easily. I've explained this
  525.     for the most part in the release notes for the driver, but these 
  526.     didn't make it into either the FreeBSD or NetBSD releases (we 
  527.     couldn't find an appropriate place to put them).
  528.  
  529.     >From the release notes:
  530.  
  531.     receive
  532.     -------
  533.        The 8390 implements a shared memory ring-buffer to store 
  534.     incoming packets.  The 8bit boards (3c503, and 8003) usually have 
  535.     only 8k bytes of shared memory.  This is only enough room for about 
  536.     4 full size (1500 byte) packets. This can sometimes be a problem, 
  537.     especially on the original WD8003E and 3c503.  This is because these 
  538.     boards' shared memory access speed is also quite slow compared to 
  539.     newer boards - typically only about 1MB/second. The additional 
  540.     overhead of this slow memory access, and the fact that there is 
  541.     only room for 4 full-sized packets means that the ring-buffer 
  542.     will occassionally overflow.  When this happens, the board must 
  543.     be reset to avoid a lockup problem in early revision 8390's.  
  544.     Resetting the board will cause all of the data in the ring-buffer 
  545.     to be lost - requiring it to be re-transmitted/received...slowing 
  546.     things even further.  Because of these problems, maximum throughput 
  547.     on boards of this type is only about 400-600k per second. The 16bit 
  548.     boards (8013 series), however, have 16k of memory as well as much 
  549.     faster memory access speed. Typical memory access speed on these 
  550.     boards is about 4MB/second. These boards generally have no problems 
  551.     keeping up with full ethernet speed. The only problem I've seen 
  552.     with these boards is related to the (slow) performance of 386BSD's 
  553.     malloc code when additional mbufs must be added to the pool. This 
  554.     can sometimes increase the total time to remove a packet enough 
  555.     for a ring-buffer overflow to occur.  
  556.  
  557.  
  558. 6.4.6    Is there any PC software that will allow me to use my enormous PC
  559.     with all of the unsupported hardware as a PC-NFS server?
  560.  
  561.     Yes.  It is called SOSS, and is available from MANY FTP sources.
  562.     You will need the aforementioned Clarkson Packet Drivers for it
  563.     to work, but that should cause too many problems for most people.
  564.  
  565.  
  566.